package com.supermap.disaster.service;

import com.supermap.agrinfo.entity.Agrinfo;
import com.supermap.common.JSONUtil;
import com.supermap.disaster.entity.Disaster;

/**
 * @Author:langhongshuai
 * @Description:农田业务层
 * @Date:18/1/29 下午3:00
 */
public interface DisasterService {

    /**
     * 获取用户的所有农情信息
     * @param userId
     * @return
     */
    public JSONUtil getDisasterByUIdArea(String userId, String areaCode);

    /**
     * 增加农情或者灾情
     * @param disaster
     * @return
     */
    public JSONUtil addDisaster(Disaster disaster);

    /**
     * 获取所有灾情信息
     * @return
     */
    public JSONUtil getAllDisaster();

    /**
     * 删除灾情
     * @param disasterId
     * @return
     */
    public JSONUtil delDisaster(int disasterId);

    /**
     *  通过区域获取灾情
     * @param areacode
     * @return
     */
    public JSONUtil getDisasterByareacode(String areacode);

    /**
     *  根据条件得到灾情
     * @param type
     * @return
     */
    public JSONUtil getDisasters(String type,String Code,String disasterType,String dateTime);
}
